*,
*:before,
*:after {
	box-sizing: border-box;
}

body,
html {
	height: 100%;
	overflow: hidden;
}

body,
ul {
	margin: 0;
	padding: 0;
}

body {
	color: #4d4d4d;
	font: 14px/1.4em 'Helvetica Neue', Helvetica, 'Microsoft Yahei', Arial, sans-serif;
	background: #f5f5f5 no-repeat center;
	background-image: url(../img/bg_c.jpg);
	background-size: cover;
	font-smoothing: antialiased;
}

ul {
	list-style: none;
}

#chat {
	margin: 20px auto;
	width: 1280px;
	height: 800px;
}

#chat {
	overflow: hidden;
	border-radius: 3px
}

#chat .main,
#chat .sidebar {
	height: 100%
}

#chat .sidebar {
	float: left;
	width: 300px;
	color: #f4f4f4;
	background-color: #2e3238
}

#chat .main {
	position: relative;
	overflow: hidden;
	background-color: #eee
}

#chat .m-text {
	position: absolute;
	width: 100%;
	bottom: 0;
	left: 0
}

#chat .m-message {
	height: calc(100% - 14pc)
}

.m-card {
	padding: 9pt;
	border-bottom: 1px solid #24272c
}

.m-card footer {
	margin-top: 10px
}

.m-card .avatar,
.m-card .name {
	vertical-align: middle
}

.m-card .avatar {
	border-radius: 2px;
	
}
.list_btn {
	width: 100%;
}
.nav>li>a{
	padding: 11px 15px !important;
}

.list_btn a{
	border-radius: 0px;
}
.list_btn li{
	margin-left: 2px;
	display: table-cell;
    width: 1%;
    float: none;
    text-align:center;
    /* border: 1px solid #3a3a3a; */
}

.list_btn a:hover{
	background-color: #eee;
}

.list_btn .active {
	background-color: #EEE;
}

.m-card .name {
	display: inline-block;
	margin: 0 0 0 15px;
	font-size: 1.3pc
}

.m-card .search {
	padding: 0 10px;
	width: 100%;
	font-size: 9pt;
	color: #fff;
	height: 30px;
	line-height: 30px;
	border: 1px solid #3a3a3a;
	border-radius: 4px;
	outline: 0;
	background-color: #26292e
}

.m-list {
	height: 81%;
	overflow-y: scroll;
}

.m-list li {
	padding: 9pt 15px;
	/* border-bottom: 1px solid #292c33; */
	cursor: pointer;
	-webkit-transition: background-color .1s;
	transition: background-color .1s
}

.m-list li:hover {
	background-color: hsla(0, 0%, 100%, .03)
}

.m-list .add_li:hover {
	background-color: #f4f4f4
}

.m-list li.active {
	background-color: hsla(0, 0%, 100%, .1)
}

.m-list .avatar,
.m-list .name {
	vertical-align: middle;
}

.m-list .avatar {
	border-radius: 2px;
}

.m-list .name {
	display: inline-block;
	margin: 0 0 0 15px;
	font-size: 16px;
}

.m-list .newest{
	height: 19px;
	width: 200px;
	font-size: 14px;
	color: rgba(168, 168, 168, 0.5);
	padding-left: 15px;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.m-list .newest img{
	width: 0px;
	height: 0px;
}

.m-list .newest .face{
	width: 15px !important;
	height: 15px !important;
}

.m-list .badge {
	float: right;
	margin-top: 15px;
}

.m-text {
	height: 10pc;
	border-top: 1px solid #ddd;
	background-color:#FFFFFF;
	/* padding-top:10px; */
}

.m-text .toolbar{
	margin-left: 1px;
}

.m-text .toolbar span{
	width: 34px;
	height: 34px;
	text-align: center;
	line-height:34px;
	color: #777777;
	cursor: pointer;
}

.m-text .toolbar input[type='file']{
	cursor: pointer;
	width: 100%;
	height:100%;
	opacity: 0;
	position: absolute;
	left:0;top: 0;
}

.m-text .toolbar span:hover{
	background-color: #dcdcdc;
	color: #3a3a3a;
}

.m-text .textarea {
	padding: 10px;
	content: "按回车发送";
	height: 80px;
	width: 100%;
	border: none;
	outline: 0;
	font-size: 16px;
	font-family: Micrsofot Yahei;
	resize: none;
	overflow-y: scroll;
}

.m-text .textarea .face{
	height: 30px;
	width: 30px;
}

.m-message {
	padding: 10px 15px;
	overflow-y: scroll
}

.m-message li {
	margin-bottom: 15px
}

.m-message .time {
	margin: 7px 0;
	text-align: center
}

.m-message .time>span {
	display: inline-block;
	padding: 0 18px;
	font-size: 9pt;
	color: #fff;
	border-radius: 2px;
	background-color: #dcdcdc
}

.m-message .avatar {
	float: left;
	width: 40px;
	height: 40px;
	margin: 0 10px 0 0;
	border-radius: 3px
}

.m-message .text {
	display: inline-block;
	position: relative;
	padding: 8px 8px;
	max-width: calc(100% - 40px);
	min-height: 30px;
	line-height: 25px;
	font-size: 16px;
	text-align: left;
	word-break: break-all;
	background-color: #fafafa;
	border-radius: 4px
}

.m-message .text .picture {
	max-width: 600px;
}

.m-message .text:before {
	content: " ";
	position: absolute;
	top: 9px;
	right: 100%;
	border: 6px solid transparent;
	border-right-color: #fafafa
}

.m-message .self {
	text-align: right;
}

.m-message .self .avatar {
	float: right;
	margin: 0 0 0 10px
}

.m-message .self .text {
	background-color: #b2e281;
	
}

.m-message .self .text:before {
	right: inherit;
	left: 100%;
	border-right-color: transparent;
	border-left-color: #b2e281
}

/*瀹氫箟婊氬姩鏉￠珮瀹藉強鑳屾櫙 楂樺鍒嗗埆瀵瑰簲妯珫婊氬姩鏉＄殑灏哄*/  
::-webkit-scrollbar{  
    width: 6px;  /*婊氬姩鏉″搴�*/
    height: 6px;  /*婊氬姩鏉￠珮搴�*/
}

  
/*瀹氫箟婊氬姩鏉¤建閬� 鍐呴槾褰�+鍦嗚*/  
::-webkit-scrollbar-track{  
    /* -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);   */
    border-radius: 3px;  /*婊氬姩鏉＄殑鑳屾櫙鍖哄煙鐨勫渾瑙�*/
    /*background-color: #EEEEEE;*/ /*婊氬姩鏉＄殑鑳屾櫙棰滆壊*/  
}  

/*瀹氫箟婊戝潡 鍐呴槾褰�+鍦嗚*/  
::-webkit-scrollbar-thumb{  
    border-radius: 3px;  /*婊氬姩鏉＄殑鍦嗚*/
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);  
    background-color: #777777;  /*婊氬姩鏉＄殑鑳屾櫙棰滆壊*/
}  










